package cn.iocoder.yudao.module.pickbook.controller.admin.classmember.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 班级成员新增/修改 Request VO")
@Data
public class ClassMemberSaveReqVO {

    @Schema(description = "班级成员唯一ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "27")
    private Long id;

    @Schema(description = "班级ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1292")
    @NotNull(message = "班级ID不能为空")
    private Long classId;

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "27245")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "加入班级时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "加入班级时间不能为空")
    private LocalDateTime joinTime;

    @Schema(description = "成员状态（正常/已移除等）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "成员状态（正常/已移除等）不能为空")
    private Integer status;

    @Schema(description = "创建者", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "创建者不能为空")
    private String creator;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新者", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "更新者不能为空")
    private String updater;

    @Schema(description = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime updateTime;

    @Schema(description = "是否删除")
    private Boolean deleted;

}